package com.wali.modules.bil.vo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.vo
 * @Description 物流信息VO类
 * @email wali.xu@kpmg.com
 * @date 20/01/2019 2:14 下午
 */
public class BilLogisticsVO implements Serializable {

    /**
     * 主键
     */
    private int id;

    /**
     * 所属运单
     */
    private String waybillNo;

    /**
     * 商品条形码
     */
    private int state;

    /**
     * 品牌
     */
    private String description;

    /**
     * 更新时间
     */
    private String updateTime;

    /**
     * 快递号
     */
    private String expressNo;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getWaybillNo() {
        return waybillNo;
    }

    public void setWaybillNo(String waybillNo) {
        this.waybillNo = waybillNo;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getExpressNo() {
        return expressNo;
    }

    public void setExpressNo(String expressNo) {
        this.expressNo = expressNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BilLogisticsVO that = (BilLogisticsVO) o;
        return id == that.id &&
                state == that.state &&
                Objects.equals(waybillNo, that.waybillNo) &&
                Objects.equals(description, that.description) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(expressNo, that.expressNo);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, waybillNo, state, description, updateTime, expressNo);
    }

    @Override
    public String toString() {
        return "BilLogisticsVO{" +
                "id=" + id +
                ", waybillNo='" + waybillNo + '\'' +
                ", state=" + state +
                ", description='" + description + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", expressNo='" + expressNo + '\'' +
                '}';
    }
}
